Version

WeakDictionary<TKey,TValue> Constructor(Boolean,Boolean,Int32,Single,IEqualityComparer<TKey>)

Constructor. Initializes a new instance of WeakDictionary<TKey,TValue>.
Syntax
'Declaration
 
Public Function New( _
   ByVal manageKeysAsWeakReferences As Boolean, _
   ByVal manageValuesAsWeakReferences As Boolean, _
   ByVal initialCapacity As Integer, _
   ByVal loadFactor As Single, _
   ByVal keyComparer As IEqualityComparer(Of TKey) _
)

Parameters

manageKeysAsWeakReferences
Specifies whether to manage keys as weak references.
manageValuesAsWeakReferences
Specifies whether to manage keys as weak references.
initialCapacity
Initial capacity.
loadFactor
Specifies load factor. Must be greater than 0 and less than or equal to 1.
keyComparer
Comparer for compring keys.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also